package cn.bs.domain.dao;

import java.util.Date;

public class Orders {
    private Integer id;
    private Integer userId;//下单的用户id
    private Integer canteenId;//订餐的餐厅id
    private Integer seatId;//订餐的座位id
    private Double orderAmount;//订单金额
    private Date orderDate;//下单时间
    private Double payAmount;//支付金额
    private Date payDate;//支付时间
    private Integer status;//订单状态，0表示未支付，1表示已支付，2表示已取消

    public Orders() {
    }

    public Orders(Integer id, Integer userId, Integer canteenId, Integer seatId, Double orderAmount, Date orderDate, Double payAmount, Date payDate, Integer status) {
        this.id = id;
        this.userId = userId;
        this.canteenId = canteenId;
        this.seatId = seatId;
        this.orderAmount = orderAmount;
        this.orderDate = orderDate;
        this.payAmount = payAmount;
        this.payDate = payDate;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCanteenId() {
        return canteenId;
    }

    public void setCanteenId(Integer canteenId) {
        this.canteenId = canteenId;
    }

    public Integer getSeatId() {
        return seatId;
    }

    public void setSeatId(Integer seatId) {
        this.seatId = seatId;
    }

    public Double getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(Double orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public Double getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(Double payAmount) {
        this.payAmount = payAmount;
    }

    public Date getPayDate() {
        return payDate;
    }

    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
